const zlibDemo = require('zlib');
const input = Buffer.from('Hello, World!');
zlibDemo.gzip(input, (err, buffer) => {
    if (!err) {
        console.log('Compressed:', buffer);
        zlibDemo.gunzip(buffer, (err, result) => {
            console.log('Decompressed:', result.toString());
        });
    }
});
